package vivace.view;

import javax.swing.ImageIcon;
import javax.swing.JComboBox;

import lib.Texter.CText;
import lib.Texter.Text;

public class VComboBox extends JComboBox implements CText {

	private String toolTipKey;
	
	/**
	 * VComboBox to change the language of combobox elements with CHAMP
	 * @param items
	 * @param toolTipKey
	 */
	public VComboBox(Object[] items, String toolTipKey ){
		super(items);
		lib.Texter.Text.registrera(this);
		this.toolTipKey = toolTipKey;
		setToolTipText(Text.getText( toolTipKey ));
	}
	
	public void setCFont() {
		
	}

	public void setToolTipKey( String toolTipKey ){
		this.toolTipKey = toolTipKey;
		setToolTipText(Text.getText( toolTipKey ));
	}

	public void setCText() {
		setToolTipText(Text.getText( toolTipKey ));
	}

}
